home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / elk-2_0.lha / elk-2.0 / util / pchb.c < prev    next >
C/C++ Source or Header  |  1992-10-11  |  298b  |  15 lines

  1. extern char *sbrk();
  2.  
  3. #define VALMASK  ((1 << 24) - 1)
  4.  
  5. main() {
  6.     char *p = sbrk(0);
  7.  
  8.     if ((unsigned long)p & ~VALMASK)
  9.     printf("pointer_constant_high_bits=0x%lx\n",
  10.         (unsigned long)p & ~VALMASK);
  11.     else
  12.     printf("no pointer_constant_high_bits on this architecture.\n");
  13.     return 0;
  14. }
  15.